package cn.kgc.springcloud.feignclient;

import cn.kgc.springcloud.entity.Clazz;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: mosin
 * @version: v1.0  2022/6/17
 */
@FeignClient("CLAZZS")
public interface ClazzClient {

    @GetMapping("clazzs/{id}")
    Clazz getById(@PathVariable("id") Integer id);
}
